home *** CD-ROM | disk | FTP | other *** search
/ PC Media 7 / PC MEDIA CD07.iso / share / prog / cm / cmtbag.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-06  |  910 b   |  28 lines

  1. // CmTBag.h
  2. // -----------------------------------------------------------------
  3. // Compendium - C++ Container Class Library
  4. // Copyright (C) 1992-1994, Glenn M. Poorman, All rights reserved
  5. // -----------------------------------------------------------------
  6. // Bag template definition.
  7. // -----------------------------------------------------------------
  8.  
  9. #ifndef _CMTBAG_H
  10. #define _CMTBAG_H
  11.  
  12. #include <cm/include/cmthash.h>
  13.  
  14. template <class T> class CmTBag : public CmTHashTable<T> {  // Bag definition.
  15. public:
  16.   CmTBag(unsigned = 10);                    // Default bag constructor.
  17.   CmTBag(const CmTBag<T>&);                 // Bag copy constructor.
  18.  ~CmTBag() {}                               // Bag destructor.
  19.  
  20.   CmTBag<T>& operator=(const CmTBag<T>&);   // Assignment operator.
  21. };
  22.  
  23. #if defined(__TURBOC__) || defined(__xlC__)
  24. #include <cm/include/cmtbag.cc>
  25. #endif
  26.  
  27. #endif
  28.